package cn.lili.modules.payment.serviceimpl;

import cn.lili.modules.payment.entity.dos.PaymentSubsidies;
import cn.lili.modules.payment.mapper.PaymentSubsidiesMapper;
import cn.lili.modules.payment.service.PaymentSubsidiesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 支付补差 业务实现
 *
 * @author Chopper
 * @since 2020-12-19 09:25
 */
@Slf4j
@Service
public class PaymentSubsidiesServiceImpl extends ServiceImpl<PaymentSubsidiesMapper, PaymentSubsidies> implements PaymentSubsidiesService {


    @Override
    public List<PaymentSubsidies> listByOrderSn(String orderSn) {
        return this.lambdaQuery().eq(PaymentSubsidies::getOrderSn, orderSn).list();
    }

    @Override
    public List<PaymentSubsidies> listByOutOrderNO(String outOrderNo) {
        return this.lambdaQuery().eq(PaymentSubsidies::getOutOrderNo, outOrderNo).list();
    }
}
